package com.agriculture.monitor.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 构建树工具
 **/
@Data
public class TreeNode<T, E> implements Serializable {

    private static final long serialVersionUID = -5179366900279452235L;

    @TableField(exist = false)
    protected T id;

    @TableField(exist = false)
    protected T parentId;

    @TableField(exist = false)
    protected List<E> children;

}
